package org.monkey.request.plugin.config;


import lombok.Data;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Slf4j
@Data
@ToString
@ConfigurationProperties(prefix = "request-log")
public class RequestLogConfigProperty implements InitializingBean {
  private boolean enable = true;
  private boolean logEnable = true;
  private boolean timeEnable = true;
  private String express = "execution(public * *..*.controller.*.*(..))";

  @Override
  public void afterPropertiesSet(){
    log.info("property init:{}",this);
  }
}
